Set Photoelectric Sensor

  • Function:

    magicbox.set_infrared_sensor(port, enable, version)
    
  • Description: set enabling status and version of photoelectric sensor

  • Required parameter:

    • port: connect photoelectric sensor to the port of Dobot Magic Box, range: 1~6
    • enable: enable the photoelectric sensor. True: enable; False: disable
    • version: version of photoelectric sensor. 0: V1.0; 1: V2.0
  • Return:

    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    magicbox.set_infrared_sensor(port=1, enable=True, version=1)
    

    Connect photoelectric sensor to port 1 of Dobot Magic Box. Enable the photoelectric sensor, and set its version as V2.0.

results matching ""

    No results matching ""